package com.itheima.reggie.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.comon.ResultInfo;
import com.itheima.reggie.domain.Employee;
import com.itheima.reggie.mapper.EmployeeMapper;

import java.util.List;

public interface EmployeeService extends IService<Employee> {
    //登录
    ResultInfo<Employee> login(Employee employee);

    //查询
    List<Employee> findAllAndByName(String name);

    //添加
    void insert(Employee employee);

   Employee findById(Long id);

}
